]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Use set_origin/set_size instead of properties when allocating
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 25 Feb 2021 10:54:39 +0000 (11:54 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Mar 2021 15:40:49 +0000 (15:40 +0000)
commit3e9a08a2e1e7b644247d4fa01b2ecfe27eae8bbc
tree7f1e7586b7ff74bc711bb3b384183b42540b28ed
parente75f3a8aed2054671643c9be3133fb58e3e60330
workspace: Use set_origin/set_size instead of properties when allocating

Setting four properties is more expensive than calling two C functions,
so move to set_origin()/set_size() calls for our ClutterActorBox
handling.

This gets us down to an average time of 2.1 ms spent in vfunc_allocate()
with 20 windows

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1743>
js/ui/workspace.js